home *** CD-ROM | disk | FTP | other *** search
/ ftp.sustworks.com 2018 / ftp.sustworks.com.zip / ftp.sustworks.com / IPNetRouterX_1.4.dmg / IPNetRouterX folder / IPNetRouterX.app / Contents / Resources / named_ipnr / named.conf < prev   
Text File  |  2009-05-29  |  2KB  |  71 lines

  1. //-----------------------------------------------------------------------------
  2. // named.conf - primary configuration file passed as a command line argument
  3. // to UNIX named (the name server software).
  4. //-----------------------------------------------------------------------------
  5. // A caching only nameserver configuration 
  6.  
  7. // Subnet(s) we wish to allow queries from.
  8. acl "internals" { 192.168.1.1/24; };    #IPNR_internals;
  9. acl "externals" { A.B.C.D/24; };    #IPNR_externals;
  10. options {
  11.     directory "/var/named_ipnr";
  12.     /*
  13.      * If there is a firewall between you and nameservers you want
  14.      * to talk to, you might need to uncomment the query-source
  15.      * directive below.  Previous versions of BIND always asked
  16.      * questions using port 53, but BIND 8.1 uses an unprivileged
  17.      * port by default.
  18.      */
  19.     // query-source address * port 53;
  20.     allow-query { "internals"; 127.0.0.1/32; 192.168.0.0/16; 10.0.0.0/8; };
  21.     listen-on  { "internals"; 127.0.0.1; };
  22. };
  23.  
  24. // Root server hints
  25. zone "." IN {
  26.     type hint;
  27.     file "named.cache";
  28. };
  29.  
  30. #IPNR_zone_start;
  31. // Define hosts on our LAN
  32. zone "lan" IN {
  33.     type master;
  34.     file "lan.zone";
  35.     allow-update { none; };
  36. };
  37.  
  38. // Provide reverse mapping for hosts on our LAN
  39. zone "0.168.192.in-addr.arpa" IN {
  40.     type master;
  41.     file "lan.rev";
  42.     allow-update { none; };
  43. };
  44. #IPNR_zone_end;
  45.  
  46. // Define localhost
  47. zone "localhost" IN {
  48.     type master;
  49.     file "localhost.zone";
  50.     allow-update { none; };
  51. };
  52.  
  53. // Provide a reverse mapping for the loopback address 127.0.0.1
  54. zone "0.0.127.in-addr.arpa" IN {
  55.     type master;
  56.     file "localhost.rev";
  57.     allow-update { none; };
  58. };
  59.  
  60. logging {
  61.         category default {
  62.                 _default_log;
  63.         };
  64.  
  65.         channel _default_log  {
  66.                 file "/Library/Logs/named.log";
  67.                 severity info;
  68.                 print-time yes;
  69.         };
  70. };
  71.